package com.wing.res.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.res.model.entity.BenchmarkBook;
import com.wing.res.model.entity.ReceiptRecord;

import java.util.Map;

/**
 * 领料记录-Service
 *
 * @author xiayang
 */
public interface ReceiptRecordService extends IService<ReceiptRecord> {

    /**
     * 分页列表
     *
     * @param page
     * @param params
     * @return
     */
    Page<ReceiptRecord> list(Page page, Map<String, Object> params);

    /**
     * 新增领料记录
     *
     * @param receiptRecord 领料记录
     */
    void add(ReceiptRecord receiptRecord);

    /**
     * 更新领料记录
     *
     * @param receiptRecord 领料记录
     */
    void update(ReceiptRecord receiptRecord);

    /**
     * 领料记录详情
     *
     * @param params 领料记录
     * @return
     */
    ReceiptRecord get(Map<String, Object> params);

    /**
     * 审核
     * @param receiptId 领料id
     * @param status 状态
     * @return
     */
    boolean audit(String receiptId, String status);
}
